package com.example.mk.UI.Mine;

import androidx.lifecycle.ViewModel;

import com.example.mk.R;
import com.example.mk.UI.Mine.data.MineDataBase;
import com.example.mk.UI.Mine.data.MineDataHeader;
import com.example.mk.UI.Mine.data.MineDataItem;
import com.example.mk.UI.Mine.data.MineDataLine;
import com.example.mk.UI.Mine.data.MineDataSeparator;

import java.util.ArrayList;

public class MineViewModel extends ViewModel {

    private ArrayList<MineDataBase> dataList;

    public MineViewModel() {
        dataList = new ArrayList<>();
        MineDataLine line = new MineDataLine();
        MineDataSeparator separator = new MineDataSeparator();
        MineDataHeader header = new MineDataHeader("朱吉峥", "记录生活每一刻");
        dataList.add(header);
        dataList.add(separator);
        MineDataItem chat = new MineDataItem("悄悄话", R.drawable.chat);
        dataList.add(chat);
        dataList.add(separator);
        MineDataItem album = new MineDataItem("相册", R.drawable.album);
        dataList.add(album);
        dataList.add(line);
        MineDataItem collect = new MineDataItem("收藏", R.drawable.chat_collect);
        dataList.add(collect);
        dataList.add(separator);
        MineDataItem clock = new MineDataItem("时间", R.drawable.clock);
        dataList.add(clock);
        dataList.add(line);
        MineDataItem dayMatter = new MineDataItem("生日本", R.drawable.daymatter);
        dataList.add(dayMatter);
        dataList.add(separator);
        MineDataItem miniApp = new MineDataItem("小程序", R.drawable.mini_app);
        dataList.add(miniApp);
        dataList.add(separator);
        MineDataItem setting = new MineDataItem("设置", R.drawable.setting);
        dataList.add(setting);
    }

    public ArrayList<MineDataBase> getDataList() {
        return dataList;
    }
}